﻿using System;
using System.Text;

namespace CodeContrib
{
	public static class StringBuilderExtensions
	{
		public static StringBuilder AppendLine(this StringBuilder builder, string format, object arg0)
		{
			builder.AppendFormat(format, arg0);

			return builder.AppendLine();
		}

		public static StringBuilder AppendLine(this StringBuilder builder, string format, params object[] args)
		{
			builder.AppendFormat(format, args);

			return builder.AppendLine();
		}

		public static StringBuilder AppendLine(this StringBuilder builder, IFormatProvider provider, string format, params object[] args)
		{
			builder.AppendFormat(provider, format, args);

			return builder.AppendLine();
		}
	}
}